<template>
  <a-form :form="form" slot="detail">
    <a-row>
      <a-col :span="24">
        <a-form-item label="子项名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
          <a-input
            v-decorator="['fieldName',{ rules: [
              {
                required: true,
                message: '请输入子项名称',
              },
            ],}]"
            placeholder="请输入子项名称"></a-input>
        </a-form-item>
      </a-col>
    </a-row>
  </a-form>
</template>

<script>

  export default {
    name: 'SalaryAddWewForm',
    components: {},
    props: {},
    data () {
      return {
        form: this.$form.createForm(this),
        model: {},
        labelCol: {
          xs: { span: 24 },
          sm: { span: 5 }
        },
        wrapperCol: {
          xs: { span: 24 },
          sm: { span: 16 }
        },
        validatorRules: {
        }
      }
    },
    computed: {},
    created () {},
    methods: {
      submitForm () {
        // 触发表单验证
        this.form.validateFields((err, values) => {
          if (!err) {
            this.$emit('ok', values)
          }
        })
      }
    }
  }
</script>
